import React, { useState } from 'react'

export default function ChildA({render}) {
  const [person, setPerson] =  useState({name:'Tom', age: 18})
  return (
    <div>
      <h4>ChildA</h4>
      {render(person)}
    </div>
  )
}
